<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="../template/template.xhtml">
	<ui:define name="titre">Demande de Devis</ui:define>

	<ui:define name="contenu">
		<h:form>
			<h:body>
				<h:outputStylesheet library="css" name="style.css" />
				<p:panel id="panel" header="Demande de Devis"
					style="margin-bottom:10px;margin-left: 50px; margin-right: 200px; width: 80%;">
					<h:panelGrid columns="3">
						<h:outputText />
						<p:messages showDetail="true" />
						<h:outputText />
					</h:panelGrid>
					<h:panelGrid columns="2" cellpadding="5">
						<h:outputLabel for="contact1" value="Email: *" styleClass="champ" />
						<p:inputText id="contact1" label="email" required="true"
							requiredMessage="Email manquant" value="#{devisBean.devis.email}"
							styleClass="input" />

						<h:outputText value="Telephone: *" styleClass="champ" />
						<p:inputText id="contact2" label="phone" required="false"
							value="#{devisBean.devis.telephone}" styleClass="input" />

						<h:outputText value="Message: *" styleClass="champ" />
						<p:inputTextarea rows="6" cols="33" required="true"
							requiredMessage="Message manquant"
							value="#{devisBean.devis.message}" styleClass="input area" />

					</h:panelGrid>
					<center>
						<p:commandButton value="Demandez le Devis" update="panel"
							actionListener="#{devisBean.enregistrer}"
							styleClass="form_button" />
					</center>

					<!-- <p:button outcome="/ListeProjet" value="Lister" />
                                                <p:button rendered="#{projetBean.estCree}"
                                                        outcome="FormMembreProjet" value="Assigner membres au projet" /> -->
				</p:panel>

			</h:body>
		</h:form>
		<!-- 		<p:editor /> -->

		<!-- p:editor id="message" autoResize="true"
							effectDuration="100" maxHeight="900" required="true"
							requiredMessage="Message manquant"
							value="#{devisBean.devis.message}"
							styleClass="input area" /-->
	</ui:define>
</ui:composition>
</html>